package com.haixiaoke.saas.repository.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.repository.pojo.ApartmentChargeItemUsage;
import com.haixiaoke.saas.repository.pojo.House;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 账单生成规则对象 biz_apartment_bill_rule
 *
 * @author qixi
 * @date 2023-06-16
 */
@Data
public class ApartmentBillVo extends House {


    /** 账单id */
    private String billId;

    /** 规则id */
    private Long ruleId;

    /** 订单id */
    private String orderId;

    /** 房屋id */
    private String houseId;

    /** 账单金额 */
    private Double billCost;

    /** 审核状态: */
    private Integer billAuditStatus;


    /** 账单结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /** 缴费截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date payDeadline;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;

    /** 缴费状态: */
    private Integer payStatus;

    /**
     * 预约人id
     */
    private String reservationId;

    /**
     * 预定人名称
     */
    private String reservationName;

    /**
     * 预订人电话
     */
    private String reservationPhone;


    /**
     * 收费项目用量列表
     */
    List<ApartmentChargeItemUsage> usages;

}
